<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>登录</title>
</head>
<body>

<form th:action="@{'/weibo/ch/loginByAccount/'+${driverKey}}" th:object="${loginParam}" method="post">
    username:<br>
    <input type="text" th:field="*{username}" name="username" value="">
    <br>
    password:<br>
    <input type="text" th:field="*{password}" name="password" value="">
    <br>
    vcode:<br>
    <input type="text" th:field="*{vcode}" name="vcode" value="">
    <br><br>
    <input type="submit" value="提交">
</form>


<h2>实时显示</h2>
<div th:switch="${res.status}">
    <span th:case=400 th:text="${res['msg']}"></span>
    <img  th:case=200 th:src="${res['img']}" />
</div>

</body>
</html>